from tests import BlogLoginTest
from tests import BlogListTest
from tests import BlogDetailTest
from tests import BlogEditTest
from common.Utils import BlogDriver

if __name__ == "__main__":
    blog_login_instance = BlogLoginTest.BlogLogin()
    blog_login_instance.BlogSucText()
    #blog_login_instance.BlogFailText()
    #blog_list_instance = BlogListTest.BlogList()
    #blog_detail_instance = BlogDetailTest.BlogDetail()
    blog_edit_instance = BlogEditTest.BlogEdit()
    #登录状态下的编辑页
    blog_edit_instance.BlogLoginEditTest()
    #登录状态下的详情页
    #blog_detail_instance.BlogLoginDetailTest()

    #退出登录
    blog_list_instance = BlogListTest.BlogList()

    #登录状态下测试博客列表页
    #blog_list_instance.BlogLoginListTest()

    #未登录状态下测试博客列表页
    #blog_list_instance.NotBlogLoginListTest()
    #未登录状态下测试博客编辑页
    #blog_edit_instance.NotBlogLoginEditTest()

    #退出博客登录
    #blog_detail_instance.NotBlogLoginDetailTest()


    BlogDriver.driver.quit()